package cn.sxt.userscenter.users.pojo;

import java.util.Date;

import cn.sxt.userscenter.mana.pojo.AAdminsEnum;

/**
 * @author Administrator
 *
 */
public class AUsersExtend {

	private int id;
	private int usersId;
	private byte idCardType;
	private String idCardNum;
	private String idCardHead;
	private String idCardBack;
	private String idCardHand;
	private Date emailSendTime;
	private String emailSendCode;
	private Date phoneSendTime;
	private String phoneSendCode;
	private Date createTime;
	private Date updateTime;
	/* 身份证的字符串描述 */
	private String idCardTypeStr;
	
	public String getIdCardTypeStr() {
		AUsersExtendEnum[] usersExtendEnums = AUsersExtendEnum.values();
		for (int i = 0; i < usersExtendEnums.length; i++) {
			AUsersExtendEnum usersExtendEnum = usersExtendEnums[i];
			if(usersExtendEnum.toString().startsWith("IDCARD_TYPE")
					&& this.getIdCardType() == usersExtendEnum.getStatus()){
				this.idCardTypeStr = usersExtendEnum.getName();
			}
		}
		return idCardTypeStr;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getUsersId() {
		return usersId;
	}
	public void setUsersId(int usersId) {
		this.usersId = usersId;
	}
	public byte getIdCardType() {
		return idCardType;
	}
	public void setIdCardType(byte idCardType) {
		this.idCardType = idCardType;
	}
	public String getIdCardNum() {
		return idCardNum;
	}
	public void setIdCardNum(String idCardNum) {
		this.idCardNum = idCardNum;
	}
	public String getIdCardHead() {
		return idCardHead;
	}
	public void setIdCardHead(String idCardHead) {
		this.idCardHead = idCardHead;
	}
	public String getIdCardBack() {
		return idCardBack;
	}
	public void setIdCardBack(String idCardBack) {
		this.idCardBack = idCardBack;
	}
	public String getIdCardHand() {
		return idCardHand;
	}
	public void setIdCardHand(String idCardHand) {
		this.idCardHand = idCardHand;
	}
	public Date getEmailSendTime() {
		return emailSendTime;
	}
	public void setEmailSendTime(Date emailSendTime) {
		this.emailSendTime = emailSendTime;
	}
	public String getEmailSendCode() {
		return emailSendCode;
	}
	public void setEmailSendCode(String emailSendCode) {
		this.emailSendCode = emailSendCode;
	}
	public Date getPhoneSendTime() {
		return phoneSendTime;
	}
	public void setPhoneSendTime(Date phoneSendTime) {
		this.phoneSendTime = phoneSendTime;
	}
	public String getPhoneSendCode() {
		return phoneSendCode;
	}
	public void setPhoneSendCode(String phoneSendCode) {
		this.phoneSendCode = phoneSendCode;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
}
